package com.example.port.mapper;

import com.example.port.entity.StorageRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StorageRecordMapper {
    
    int insert(StorageRecord record);
    
    List<StorageRecord> selectAll();
    
    StorageRecord selectById(Long id);
    
    int update(StorageRecord record);
    
    int delete(Long id);
    
    List<StorageRecord> selectByCargoId(Integer cargoId);
    
    int deleteByCargoId(Integer cargoId);
    
    // 获取最大记录ID
    Long getMaxRecordId();
} 
